<?php
$total1=$duoduo->count('user',"tjr='".$dduser["id"]."'");
$total2=$duoduo->sum('tgyj','money','tjrid="'.$dduser["id"].'"');
$dengji_img = "<img src='images/v".$dduser['type'].".gif' />";
?>
<div class="usertop">
        <div class="top-bar">
            <div class="user-panel">
                <div class="avatar">
                    <img src="<?=a($dduser['id'])?>" width="80" height="80" />
                </div>
                <div class="content">
                    <div class="name"><?=$dduser['name']?></div>
                    <div><a href="<?=u('user','avatar')?>"><font color="#0099FF">换个头像</font></a></div>
                    <em>我的等级：<?=$dengji_img?></em>
                </div>
            </div>
            <div class="status-bar">
                <div class="entry">
                    <div class="title">我的<?=TBMONEY?></div>
                    <div class="num"><?=$dduser['live_jifenbao']?>个</div>
                    <em>待结算<?=$dduser['freeze_jifenbao']?>个  已提<?=jfb_data_type($dduser['tbyitixian'])?>个</em>
                </div>
                <div class="entry">
                    <div class="title">我的余额 </div>
                    <div class="num"><?=$dduser['live_money']?>元</div>
                    <em>已提取<?=$dduser['yitixian']?>元</em>
                </div>
                <div class="entry">
                    <div class="title">我的积分</div>
                    <div class="num"><?=$dduser['jifen']?>点</div>
                    <em><a href="<?=u('user','huan')?>">我已兑换的礼品</a></em>
                </div>
               <?php if($webset['user']['shoutu']==1){?> <div class="entry">
                    <div class="title">总邀请奖励</div>
                    <div class="num"><?=$total2?>元</div>
                    <em>共邀请<?=$total1?>人</em>
                </div> <?php }?>
				<div class="entry">
                   <a href="<?=u('task','index')?>"><img src="<?=TPLURL?>/inc/images/user/rw.jpg" /></a>
                   <a href="<?=u('task','gametask')?>"><img src="<?=TPLURL?>/inc/images/user/yx.jpg" /></a>
                </div>
            </div>
        </div>